<!-- 
        作者：戴荔春 
        时间：2015-05-25
        描述：html5中的下载文件的几种方式
-->
<!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=0" />
		<title>H5文件下载</title>
		<script>
			document.write("<script type='text/javascript' src='../../js/core/RayApp/cacheControl.config.js?" + Math.random() + "'></scr" + "ipt>");
		</script>
		<script>
			SrcBoot.output([
				'css/mui.min.css',
				'css/common/common.css',
				'../../css/download/demo_downloadFile_h5.css'
			]);
		</script>

	</head>

	<body>
		<header id="header" class="mui-bar mui-bar-nav bg-blue">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 id="title" class="mui-title">H5文件下载</h1>
			<a id="info" class="mui-icon mui-icon-info-filled mui-pull-right"></a>
		</header>
		<div class="mui-content">
			<div class="attach-container" id="attachContainer">
				<div class="attach-item not-last-item">
					<i class="attach-icon mui-icon mui-icon-paperclip">
   					 </i>
					<span class="attach-title">
        				自带href打开地址
   					 </span>
					<a class="attach-download-icon mui-icon mui-icon-download " href="https://img.alicdn.com/imgextra/i4/698360784/TB21UhfdVXXXXczXXXXXXXXXXXX_!!698360784.jpg">
					</a>
				</div>
				<div class="attach-item not-last-item custome-download">
					<i class="attach-icon mui-icon mui-icon-paperclip">
   					 </i>
					<span class="attach-title">
        				通过监听,手动用href下载rar
   					 </span>
					<a class="attach-download-icon mui-icon mui-icon-download " link-url="http://221.226.86.35/EpointNJZHSQ/yidongduan/update.rar">
					</a>
				</div>
				<div class="attach-item not-last-item custome-download">
					<i class="attach-icon mui-icon mui-icon-paperclip">
   					 </i>
					<span class="attach-title">
        				通过监听,手动用href查看图片
   					 </span>
					<a class="attach-download-icon mui-icon mui-icon-download " link-url="https://img.alicdn.com/imgextra/i4/698360784/TB21UhfdVXXXXczXXXXXXXXXXXX_!!698360784.jpg">
					</a>
				</div>
				<div class="attach-item not-last-item">
					<i class="attach-icon mui-icon mui-icon-paperclip">
   					 </i>
					<span class="attach-title">
        				通过H5Download下载文件
   					 </span>
					<a class="attach-download-icon mui-icon mui-icon-download " href="https://img.alicdn.com/imgextra/i4/698360784/TB21UhfdVXXXXczXXXXXXXXXXXX_!!698360784.jpg" download='testImg'>
					</a>
				</div>

			</div>
		</div>
		<script>
			SrcBoot.outSeaConfig();
		</script>
		<script>
			seajs.use('js/bizlogic/download/demo_downloadFile_h5.js');
		</script>
	</body>

</html>